package st.business.tepth.business.user.busnumber.preholder.repair;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.PreWorkInfoBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;
/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-04-11 15:38
 */

public interface PreRepairContract {
    interface View extends BaseView {
        void showData(PreWorkInfoBean infoBean);
        void showError(String error);
    }

    interface Model extends BaseModel {
        Disposable getInfo(String token, int repairId, OnDataConvertListener<PreWorkInfoBean>
                listener);
    }

    abstract class  Presenter extends BasePresenter<View> {
        abstract void getInfo(String token,int repairId);
    }
}
